package com.cyzy.mapper;

import com.cyzy.entity.TeacherAvailableTime;
import org.apache.ibatis.annotations.Param;
import java.util.List;

public interface TeacherAvailableTimeMapper {
    // 分页查询课程列表
    List<TeacherAvailableTime> selectList(
            @Param("keyword") String keyword,
            @Param("teacherName") String teacherName,
            @Param("start") int start,
            @Param("pageSize") int pageSize);

    // 查询总记录数
    int selectCount(
            @Param("keyword") String keyword,
            @Param("teacherName") String teacherName);

    // 根据ID查询课程
    TeacherAvailableTime selectById(Integer id);

    // 新增课程
    int insert(TeacherAvailableTime teacherAvailableTime);

    // 更新课程
    int update(TeacherAvailableTime teacherAvailableTime);

    // 删除课程
    int deleteById(Integer id);
}
